package com.lantu.vo.user;

import com.lantu.core.entity.User;
import com.lantu.utils.BeanUtils;
import lombok.Data;

import java.util.Date;

@Data
public class UserVO {
    private String id;

    private String username;

    private String phone;

    private Integer status;

    private String email;

    private String ip;

    private Date lastLoginTime;


    public static UserVO newInstance(User user) {
        return BeanUtils.toBean(user, UserVO.class);
    }
}
